﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace TaskFactoryBugSample
{
  // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Backend" in both code and config file together.
  public class Backend : IBackend
  {
    public IEnumerable<Data> GetMasters()
    {
      return new []
      {
        new Data() { Message = "master 1"},
        new Data() { Message = "master 2"},
        new Data() { Message = "master 3"},
        new Data() { Message = "master 4"},
        new Data() { Message = "master 5"},
      };
    }

    public IEnumerable<Data> GetDetails(string master)
    {
      return new []
      {
        new Data() { Message = master + " detail 1"},
        new Data() { Message = master + " detail 2"},
        new Data() { Message = master + " detail 3"},
        new Data() { Message = master + " detail 4"},
        new Data() { Message = master + " detail 5"},
      };
      
    }
  }
}
